package com.bm.product.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @Author: 木浔
 * @CreateTime: 2025-08-05
 * 轮播图
 */

@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "bm_carousel")
@ApiModel("轮播图")
public class Carousel {

    @Id
    @ApiModelProperty("轮播图ID")
    private int id;

    @ApiModelProperty("图片 URL")
    private String imgUrl;

//    @ApiModelProperty("点击跳转地址")
//    private String linkUrl;
//
//    @ApiModelProperty("跳转方式")
//    private String linkTarget;

    @ApiModelProperty("轮播图标题")
    private String title;

    @ApiModelProperty("排序")
    private Integer seq ;

    @ApiModelProperty("是否展示  1-展示 0-不展示")
    private Boolean isShow;


}
